﻿<%@ Page Language="C#" MasterPageFile="~/Manager.master" AutoEventWireup="true" CodeFile="Revenue.aspx.cs"
    Inherits="Manager_Revenue_Revenue" Title="Untitled Page" %>

<%@ Register Src="../../Pub/Module/Calendar.ascx" TagName="Calendar" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
#superTableDemoDiv {	margin: 1px 1px;  
width:785px; height: 545px;  overflow: hidden; font-size: 1em; }
			.sBase { position: relative; width: 100%; height: 100%; overflow: hidden; }
			.sHeader { position: absolute; z-index: 3; background-color: #ffffff; }
			.sHeaderInner {	position: relative; }
			.sHeaderInner table { border-spacing: 0px 0px !important; border-collapse: collapse !important;	width: 1px !important; 
				table-layout: fixed !important;	background-color: #ffffff; /* Here b/c of Opera 9.25 */ }
			.sFHeader {	position: absolute; z-index: 4;	overflow: hidden; }
			.sFHeader table { border-spacing: 0px 0px !important; border-collapse: collapse !important;	width: 1px !important; 
				table-layout: fixed !important;	background-color: #ffffff; /* Here b/c of Opera 9.25 */ }
			.sData { position: absolute; z-index: 2; overflow: auto; background-color: #ffffff; }
			.sData table { border-spacing: 0px 0px !important; border-collapse: collapse !important; width: 1px !important;	
				table-layout: fixed !important; }
			.sFData { position: absolute; z-index: 1; background-color: #ffffff; }
			.sFDataInner { position: relative; }
			.sFData table {	border-spacing: 0px 0px !important;	border-collapse: collapse !important; width: 1px !important; 
				table-layout: fixed !important; }
			.sSky {	margin: 0px; padding: 0px; border: none; font-family: Verdana, Arial, sans serif; font-size: 0.9em; }
			.sSky th, .sSky td { border: 1px solid #996666; padding: 3px 6px 3px 4px; white-space: nowrap; }
			.sSky th { background-color: #CFDCEE; }
			.sSky-Fixed { background-color: #e4ecf7; }
/*9eb6ce*/
</style>

    <script type="text/javascript" language="javascript" src="../../Pub/Js/jquery.js"></script>

    <script language="javascript" type="text/javascript">
/*alert(document.body.clientWidth);
$(document).ready(function() {   
        $("#superTableDemoDiv").css({'width':$(window).width()-50+"px",
        'height':$(window).height()-50+"px"}
        )              
   });
*/

         
    </script>

    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
        <tr>
            <td align="center">
                <table border="0" cellpadding="2">
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Năm: " Font-Bold="true"></asp:Label>&nbsp;
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="1" align="center" id="ee">
                <div id="superTableDemoDiv">
                    <asp:Table runat="server" ID="tblMaster">
                    </asp:Table>
                </div>
            </td>
        </tr>
    </table>
    <div id="divBox" class="divBox">
        <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td style="background-color: #990000; color: white">
                    <table cellpadding="0" cellspacing="0" width="100%" id="tblDrag">
                        <tr>
                            <td>
                                <span class="headerGird" style="font-size: 16px; font-family: Verdana; font-weight: bold"
                                    id="lblDialogVoter"></span>
                                <input id="hidParaVoter" type="hidden" />
                            </td>
                            <td align="center" width="5%">
                                <img src="../../Images/Icon/close.png" width="25px" height="25px" boder="0" style="cursor: pointer"
                                    id="imgHideUV" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <iframe id="ifOrder" width="100%" height="475px" scrolling="auto" frameborder="0"></iframe>
                </td>
            </tr>
        </table>
    </div>
<script language="javascript" type="text/javascript" src="../../Pub/Js/jquery.easydrag.handler.beta2.js"></script>
<script language="javascript" type="text/javascript" src="../../Pub/Js/superTable.js"></script>
    <script language="javascript" type="text/javascript">
		
		
		$("#divBox").easydrag();
       $("#divBox").setHandler('tblDrag');
                    
		function fnOpenOrderDetail(sDate,type)
		{		    
		    var dates=FormatDate(sDate);
		   $("#lblDialogVoter").html(type=="out"?"HÓA ĐƠN XUẤT KHO "+dates+"":"HÓA ĐƠN NHẬP KHO "+dates);
		    $("#ifOrder").attr({'src':'OrderDetail.aspx?sState=E&sDate='+sDate+'&eDate='+sDate+'&type='+type+''});			    
		   //$("#divBox").slideDown("medium"); 
		  $("#divBox").show(); 
	
		  $("#ifOrder").height=$("#divBox").height;
		}
		 $('#imgHideUV').click(function() {                         
                HideEditBox();    
         });
          function HideEditBox() {       
           $("#ifOrder").attr({'src':''});	
            //$("#divBox").fadeOut('slow');
           $("#divBox").hide();  
         }
         function FormatDate(strDate)
         {
            var str=String(strDate);
            str=str.substr(6,2)+"/"+str.substr(4,2)+"/"+str.substr(0,4);  
  
           return  str;
         }
         
    </script>

</asp:Content>
